package com.xsir.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xsir.dto.CommentList;
import com.xsir.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 评论表 服务类
 * </p>
 *
 * @author xsir
 * @since 2020-11-08
 */
public interface ICommentService extends IService<Comment> {
    /**
     * 分页获取文章的所有评论
     * @param page
     * @param articleId
     * @return
     */
    public List<CommentList> getArticleComment(Page<Comment> page, Long articleId);
}
